package com.baitai.system.domain.vo;

import com.baitai.common.annotation.Excel;
import com.baitai.common.annotation.Excel.ColumnType;
import com.baitai.common.annotation.Excel.Type;
import com.baitai.common.annotation.Excels;
import com.baitai.common.core.domain.BaseEntity;
import com.baitai.common.core.domain.entity.SysDept;
import com.baitai.common.core.domain.entity.SysRole;
import com.baitai.common.xss.Xss;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * 用户对象 sys_user
 * 
 * @author ruoyi
 */
public class SysUserTeam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;


    /** 用户账号 */
    private String userName;

    /** 用户昵称 */
    private String nickName;

    /** 用户邮箱 */
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码", cellType = ColumnType.TEXT)
    private String phonenumber;

    /** 用户性别 */
    private String sex;

    /** 用户头像 */
    private String avatar;

    /** 积分 */
    private String userPoints;
    /** 总积分 */
    private String totalPoints;
    /** 上级id */
    private String parentId;
    private String userLevel;
    private String qrCode;

    private String ancestor;

    /** app下载地址 */
    private String appUrl;

    /** 收益比例 */
    private String yieldRate;
    /** oss下载地址 */
    private String ossUrl;
    private String isForce;

    /** 广告位id1 */
    private String placementIdOne;

    /** 广告位id2 */
    private String placementIdTwo;

    /** 广告位id3 */
    private String placementIdThree;

    private String packageVersion;

    /** 包标签 */
    private String packageTabs;

    /** 插屏次数 */
    private String placementTwoCount;

    /** 抽奖次数 */
    private String prizeCount;

    /** 邀请进展 */
    private String prizeProgress;

    private String isPrivate;
    /** 岗位组 */
    private List<SysUserTeam> sysUserTeams;


    public SysUserTeam()
    {

    }

    public SysUserTeam(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }


    @Xss(message = "用户昵称不能包含脚本字符")
    @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符")
    public String getNickName()
    {
        return nickName;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    @Xss(message = "用户账号不能包含脚本字符")
    @NotBlank(message = "用户账号不能为空")
    @Size(min = 0, max = 30, message = "用户账号长度不能超过30个字符")
    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符")
    public String getPhonenumber()
    {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber)
    {
        this.phonenumber = phonenumber;
    }

    public String getSex()
    {
        return sex;
    }

    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getAvatar()
    {
        return avatar;
    }

    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getUserPoints() {
        return userPoints;
    }

    public void setUserPoints(String userPoints) {
        this.userPoints = userPoints;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(String userLevel) {
        this.userLevel = userLevel;
    }


    public String getTotalPoints() {
        return totalPoints;
    }

    public void setTotalPoints(String totalPoints) {
        this.totalPoints = totalPoints;
    }

    public List<SysUserTeam> getSysUserTeams() {
        return sysUserTeams;
    }

    public void setSysUserTeams(List<SysUserTeam> sysUserTeams) {
        this.sysUserTeams = sysUserTeams;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public String getAncestor() {
        return ancestor;
    }

    public void setAncestor(String ancestor) {
        this.ancestor = ancestor;
    }

    public String getAppUrl() {
        return appUrl;
    }

    public void setAppUrl(String appUrl) {
        this.appUrl = appUrl;
    }

    public String getYieldRate() {
        return yieldRate;
    }

    public void setYieldRate(String yieldRate) {
        this.yieldRate = yieldRate;
    }

    public String getOssUrl() {
        return ossUrl;
    }

    public void setOssUrl(String ossUrl) {
        this.ossUrl = ossUrl;
    }

    public String getIsForce() {
        return isForce;
    }

    public void setIsForce(String isForce) {
        this.isForce = isForce;
    }

    public String getPlacementIdOne() {
        return placementIdOne;
    }

    public void setPlacementIdOne(String placementIdOne) {
        this.placementIdOne = placementIdOne;
    }

    public String getPlacementIdTwo() {
        return placementIdTwo;
    }

    public void setPlacementIdTwo(String placementIdTwo) {
        this.placementIdTwo = placementIdTwo;
    }

    public String getPlacementIdThree() {
        return placementIdThree;
    }

    public void setPlacementIdThree(String placementIdThree) {
        this.placementIdThree = placementIdThree;
    }

    public String getPackageVersion() {
        return packageVersion;
    }

    public void setPackageVersion(String packageVersion) {
        this.packageVersion = packageVersion;
    }

    public String getPackageTabs() {
        return packageTabs;
    }

    public void setPackageTabs(String packageTabs) {
        this.packageTabs = packageTabs;
    }

    public String getPrizeCount() {
        return prizeCount;
    }

    public void setPrizeCount(String prizeCount) {
        this.prizeCount = prizeCount;
    }

    public String getPrizeProgress() {
        return prizeProgress;
    }

    public void setPrizeProgress(String prizeProgress) {
        this.prizeProgress = prizeProgress;
    }

    public String getIsPrivate() {
        return isPrivate;
    }

    public void setIsPrivate(String isPrivate) {
        this.isPrivate = isPrivate;
    }

    public String getPlacementTwoCount() {
        return placementTwoCount;
    }

    public void setPlacementTwoCount(String placementTwoCount) {
        this.placementTwoCount = placementTwoCount;
    }

    @Override
    public String toString() {
        return "SysUserTeam{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", email='" + email + '\'' +
                ", phonenumber='" + phonenumber + '\'' +
                ", sex='" + sex + '\'' +
                ", avatar='" + avatar + '\'' +
                ", userPoints='" + userPoints + '\'' +
                ", totalPoints='" + totalPoints + '\'' +
                ", parentId='" + parentId + '\'' +
                ", userLevel='" + userLevel + '\'' +
                ", qrCode='" + qrCode + '\'' +
                ", ancestor='" + ancestor + '\'' +
                ", appUrl='" + appUrl + '\'' +
                ", yieldRate='" + yieldRate + '\'' +
                ", ossUrl='" + ossUrl + '\'' +
                ", isForce='" + isForce + '\'' +
                ", placementIdOne='" + placementIdOne + '\'' +
                ", placementIdTwo='" + placementIdTwo + '\'' +
                ", placementIdThree='" + placementIdThree + '\'' +
                ", packageVersion='" + packageVersion + '\'' +
                ", packageTabs='" + packageTabs + '\'' +
                ", placementTwoCount='" + placementTwoCount + '\'' +
                ", prizeCount='" + prizeCount + '\'' +
                ", prizeProgress='" + prizeProgress + '\'' +
                ", isPrivate='" + isPrivate + '\'' +
                ", sysUserTeams=" + sysUserTeams +
                '}';
    }
}
